Skip to content

BREAKING(core): move build cache checks out of App.prototype.handler()#2931

Closed
iuioiua wants to merge 1 commit into
freshframework:mainfrom
iuioiua:handler
Closed

BREAKING(core): move build cache checks out of App.prototype.handler()#2931
iuioiua wants to merge 1 commit into
freshframework:mainfrom
iuioiua:handler

Conversation

@iuioiua

@iuioiua iuioiua commented May 13, 2025

Copy link
Copy Markdown
Contributor

App.prototype.handler() is now more accurately named as it's now a handler rather than a handler factory. Checking for the build cache is something that should be checked upon listening.

Needed for #2896

@iuioiua iuioiua marked this pull request as ready for review May 13, 2025 05:34

@marvinhagemeister marvinhagemeister left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checking for the build cache is something that should be checked upon listening.

Are you saying that user's should do this check themselves?

const handler = app.handler();
Deno.serve(handler)

How would we hook into the listen aspect here?

@iuioiua

iuioiua commented May 13, 2025

Copy link
Copy Markdown
Contributor Author

Maybe we could move the build logic into a new .build() method and call that method within .listen(). If needed, the user can call it before .handle().

@iuioiua

iuioiua commented May 14, 2025

Copy link
Copy Markdown
Contributor Author

I'll revisit this once approaching deno serve support.

@iuioiua iuioiua closed this May 14, 2025
@iuioiua iuioiua deleted the handler branch May 14, 2025 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants